import { ResPage, CheckIn } from "@/api/interface/checkinList";
import { PORT1 } from "@/api/config/servicePort";
// import test from "@/assets/json/test.json";
import http from "@/api";

export const getCheckinList = async (params?: CheckIn.ReqCheckInParams) => {
  console.log(params);
  // return test;
  const response = await http.post<ResPage<CheckIn.CheckInInfo>>(PORT1 + "/admin/checkinList", params);
  return response.data;
};

export const pickGift = async (params?: CheckIn.PickGift) => {
  console.log(params);
  // return test;
  const response = await http.post(PORT1 + "/admin/pickGift", params);
  return response.data;
};
